import "package:ct_pa_majordomo/pages/check_in_detail/complete/widgets/bill_accounting/index.dart";
import "package:ct_pa_majordomo/pages/check_in_detail/detail/widgets/cohabitant/index.dart";
import "package:ct_pa_majordomo/pages/check_in_detail/detail/widgets/edit_remark/index.dart";
import "package:ct_pa_majordomo/pages/check_in_detail/detail/widgets/rent_info/index.dart";
import "package:ct_pa_majordomo/pages/check_in_detail/detail/widgets/renter_info/index.dart";
import "package:ct_pa_majordomo/pages/check_in_detail/due_in_add/index.dart";
import "package:ct_pa_majordomo/pages/check_in_detail/index.dart";
import "package:ct_pa_majordomo/pages/check_in_detail/lock_list/index.dart";
import "package:ct_pa_majordomo/pages/check_in_detail/unlock_permission_manage/index.dart";
import "package:ct_pa_majordomo/pages/check_in_detail/electricity_use_reacord/index.dart";
import "package:ct_pa_majordomo/router/keys.dart";
import "package:flutter/material.dart";


class CheckInDetailRoutes {

  static Map<String, WidgetBuilder> getRoutes(BuildContext context) {
    return {
      ///入住详情
      Keys.CHECK_IN_DETAIL: (context, {arguments}) => CheckInDetail(checkInId: arguments["checkInId"], changeInfo: arguments["changeInfo"]),
      ///入住详情 添加同住人
      Keys.CHECK_IN_DETAIL_COHABITANT: (context, {arguments}) => Cohabitant(checkInId: arguments["checkInId"], changeInfo: arguments["changeInfo"],),
      ///入住详情 租客信息
      Keys.CHECK_IN_DETAIL_RENTER_INFO: (context, {arguments})
          => RenterInfo(renterType: arguments["renterType"], info: arguments["info"], changeInfo: arguments["changeInfo"]),
      ///入住详情 编辑备注
      Keys.CHECK_IN_DETAIL_EDIT_REMARK: (context, {arguments})
          => EditRemark(remark: arguments["remark"], checkInId: arguments["checkInId"], changeInfo: arguments["changeInfo"],),
      ///入住详情 房租详情
      Keys.CHECK_IN_DETAIL_RENT_INFO: (context, {arguments}) => RentInfo(checkInId: arguments["checkInId"], changeInfo: arguments["changeInfo"]),
      ///入住详情 用电记录
      Keys.CHECK_IN_DETAIL_ELECTRICITY_USE_RECORD: (context, {arguments}) => ElectricityUseRecord(roomId: arguments["roomId"]),
      ///入住详情 开门钥匙管理
      Keys.CHECK_IN_DETAIL_UNLOCK_PERMISSION_MANAGE: (context, {arguments}) => const UnlockPermissionManage(),
      ///入住详情 门锁列表
      Keys.CHECK_IN_DETAIL_LOCK_LIST: (context, {arguments}) => LockList(roomId: arguments),

      ///入住详情 添加待收账单
      Keys.CHECK_IN_DETAIL_DUE_IN_ADD: (context, {arguments}) => DueInAdd(initialIndex: arguments["initialIndex"], checkInId: arguments["checkInId"], roomId: arguments["roomId"],),
      ///入住详情 添加记账
      Keys.CHECK_IN_DETAIL_BILL_ACCOUNTING_ADD: (context, {arguments}) => const BillAccounting(),
    };
  }
}